﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class cardsearchbtn : MonoBehaviour
{
    [SerializeField]
    InputField input;
    public cardcontrol cardcontrol;

    private void Start()
    {
        cardcontrol = GameObject.Find("cardmanager").GetComponent<cardcontrol>();
    }


    public void Searchcard()
    {
        if (string.IsNullOrEmpty(input.text))
            return;
        cardcontrol.AddCard(input.text);
    }
}
